﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;

public class Menu
{
    public static Ext.Net.Menu LoadMenuCategorys(string menuName, string panelCenterName, string messageLoading)
    {
        Ext.Net.Menu menuPrincipal = new Ext.Net.Menu();
        menuPrincipal.ID = menuName;
        menuPrincipal.Listeners.Click.Handler = "MenuPanel.addTab('" + panelCenterName + "', menuItem, 0,'" + messageLoading + "');";

        Ext.Net.MenuItem menuItem11 = new Ext.Net.MenuItem();
        menuItem11.ID = menuName + "categorycatalog";
        menuItem11.Text = "Catalogo Categorias";
        menuItem11.Icon = Ext.Net.Icon.LayoutContent;

        Ext.Net.ConfigItem configItem11 = new Ext.Net.ConfigItem();
        configItem11.Name = "url";
        configItem11.Value = "catalogCategorys.aspx";
        configItem11.Mode = Ext.Net.ParameterMode.Value;

        menuItem11.CustomConfig.Add(configItem11);
        menuPrincipal.Items.Add(menuItem11);

        return menuPrincipal;
    }
    public static Ext.Net.Menu LoadMenuOrders(string menuName, string panelCenterName, string messageLoading)
    {
        Ext.Net.Menu menuPrincipal = new Ext.Net.Menu();
        menuPrincipal.ID = menuName;
        menuPrincipal.Listeners.Click.Handler = "MenuPanel.addTab('" + panelCenterName + "', menuItem, 0,'" + messageLoading + "');";

        Ext.Net.MenuItem menuItem11 = new Ext.Net.MenuItem();
        menuItem11.ID = menuName + "Config TipsJardin";
        menuItem11.Text = "Config TipsJardin";
        menuItem11.Icon = Ext.Net.Icon.LayoutContent;
        
        Ext.Net.ConfigItem configItem11 = new Ext.Net.ConfigItem();
        configItem11.Name = "url";
        configItem11.Value = "catalogConfigTips.aspx";
        configItem11.Mode = Ext.Net.ParameterMode.Value;

        menuItem11.CustomConfig.Add(configItem11);

        //Administrador Tips Jardin
        Ext.Net.MenuItem menuItem2 = new Ext.Net.MenuItem();
        menuItem2.ID = menuName + "TipsJardin";
        menuItem2.Text = "Administrador TipsJardin";
        menuItem2.Icon = Ext.Net.Icon.ApplicationSideTree;

        Ext.Net.ConfigItem configItem2 = new Ext.Net.ConfigItem();
        configItem2.Name = "url";
        configItem2.Value = "catalogTipsJardin.aspx";
        configItem2.Mode = Ext.Net.ParameterMode.Value;

        menuItem2.CustomConfig.Add(configItem2);

        //Administrador Servicio Cliente
        Ext.Net.MenuItem menuItem3 = new Ext.Net.MenuItem();
        menuItem3.ID = menuName + "ServicioCliente";
        menuItem3.Text = "Administrador ServicioCliente";
        menuItem3.Icon = Ext.Net.Icon.ApplicationSideTree;

        Ext.Net.ConfigItem configItem3 = new Ext.Net.ConfigItem();
        configItem3.Name = "url";
        configItem3.Value = "catalogContentManager.aspx";
        configItem3.Mode = Ext.Net.ParameterMode.Value;

        menuItem3.CustomConfig.Add(configItem3);

        //Agregamos a menu principal
        menuPrincipal.Items.Add(menuItem11);
        menuPrincipal.Items.Add(menuItem2);
        menuPrincipal.Items.Add(menuItem3);

        return menuPrincipal;
    }
    public static Ext.Net.Menu LoadMenuProducts(string menuName, string panelCenterName, string messageLoading)
    {
        Ext.Net.Menu menuPrincipal = new Ext.Net.Menu();
        menuPrincipal.ID = menuName;
        menuPrincipal.Listeners.Click.Handler = "MenuPanel.addTab('" + panelCenterName + "', menuItem, 0,'" + messageLoading + "');";

        //item1
        Ext.Net.MenuItem menuItem11 = new Ext.Net.MenuItem();
        menuItem11.ID = menuName + "Products";
        menuItem11.Text = "Productos";
        menuItem11.Icon = Ext.Net.Icon.LayoutContent;

        Ext.Net.ConfigItem configItem11 = new Ext.Net.ConfigItem();
        configItem11.Name = "url";
        configItem11.Value = "catalogProducts.aspx";
        configItem11.Mode = Ext.Net.ParameterMode.Value;

        menuItem11.CustomConfig.Add(configItem11);


        //item2
        Ext.Net.MenuItem menuItem12 = new Ext.Net.MenuItem();
        menuItem12.ID = menuName + "ProductsVarious";
        menuItem12.Text = "Productos Otros";
        menuItem12.Icon = Ext.Net.Icon.LayoutContent;

        Ext.Net.ConfigItem configItem12 = new Ext.Net.ConfigItem();
        configItem12.Name = "url";
        configItem12.Value = "catalogProductsVarious.aspx";
        configItem12.Mode = Ext.Net.ParameterMode.Value;

        menuItem12.CustomConfig.Add(configItem12);

        //Agregamos a menu principal
        menuPrincipal.Items.Add(menuItem11);
        menuPrincipal.Items.Add(menuItem12);

        return menuPrincipal;
    }
    public static Ext.Net.Menu LoadMenuSubCategory(string menuName, string panelCenterName, string messageLoading)
    {
        Ext.Net.Menu menuPrincipal = new Ext.Net.Menu();
        menuPrincipal.ID = menuName;
        menuPrincipal.Listeners.Click.Handler = "MenuPanel.addTab('" + panelCenterName + "', menuItem, 0,'" + messageLoading + "');";

        //item1
        Ext.Net.MenuItem menuItem11 = new Ext.Net.MenuItem();
        menuItem11.ID = menuName + "SubcategoryCatalog";
        menuItem11.Text = "Catalogo Subcategorias";
        menuItem11.Icon = Ext.Net.Icon.LayoutContent;

        Ext.Net.ConfigItem configItem11 = new Ext.Net.ConfigItem();
        configItem11.Name = "url";
        configItem11.Value = "catalogSubCategorys.aspx";
        configItem11.Mode = Ext.Net.ParameterMode.Value;

        menuItem11.CustomConfig.Add(configItem11);

        //Agregamos a menu principal
        menuPrincipal.Items.Add(menuItem11);

        return menuPrincipal;
    }
    public static Ext.Net.Menu LoadMenuSecurityCatalog(string menuName, string panelCenterName, string messageLoading)
    {
        Ext.Net.Menu menuPrincipal = new Ext.Net.Menu();
        menuPrincipal.ID = menuName;
        menuPrincipal.Listeners.Click.Handler = "MenuPanel.addTab('" + panelCenterName + "', menuItem, 0,'" + messageLoading + "');";

        //Catalogo usuarios
        Ext.Net.MenuItem menuItem11 = new Ext.Net.MenuItem();
        menuItem11.ID = menuName + "menuUsuarios";
        menuItem11.Text = "Usuarios";
        menuItem11.Icon = Ext.Net.Icon.Layout;
        menuItem11.Disabled = true;

        Ext.Net.ConfigItem configItem11 = new Ext.Net.ConfigItem();
        configItem11.Name = "url";
        configItem11.Value = "catalogUsers.aspx";
        configItem11.Mode = Ext.Net.ParameterMode.Value;

        menuItem11.CustomConfig.Add(configItem11);

        //Agregamos a menu principal
        menuPrincipal.Items.Add(menuItem11);

        return menuPrincipal;
    }
    public static Ext.Net.Menu LoadMenuPreferencesCatalog(string menuName, string panelCenterName, string messageLoading)
    {
        Ext.Net.Menu menuPrincipal = new Ext.Net.Menu();
        menuPrincipal.ID = menuName;
        menuPrincipal.Listeners.Click.Handler = "MenuPanel.addTab('" + panelCenterName + "', menuItem, 0,'" + messageLoading + "');";

        //Catalogo usuarios
        Ext.Net.MenuItem menuItem11 = new Ext.Net.MenuItem();
        menuItem11.ID = menuName + "Preferences";
        menuItem11.Text = "Catalogo Preferencias";
        menuItem11.Icon = Ext.Net.Icon.LayoutContent;

        Ext.Net.ConfigItem configItem11 = new Ext.Net.ConfigItem();
        configItem11.Name = "url";
        configItem11.Value = "catalogPreferences.aspx";
        configItem11.Mode = Ext.Net.ParameterMode.Value;

        menuItem11.CustomConfig.Add(configItem11);

        //Agregamos a menu principal
        menuPrincipal.Items.Add(menuItem11);

        return menuPrincipal;
    }
    public static Ext.Net.Menu LoadMenuBannersCatalog(string menuName, string panelCenterName, string messageLoading)
    {
        Ext.Net.Menu menuPrincipal = new Ext.Net.Menu();
        menuPrincipal.ID = menuName;
        menuPrincipal.Listeners.Click.Handler = "MenuPanel.addTab('" + panelCenterName + "', menuItem, 0,'" + messageLoading + "');";

        //Catalogo usuarios
        Ext.Net.MenuItem menuItem11 = new Ext.Net.MenuItem();
        menuItem11.ID = menuName + "menuBanners";
        menuItem11.Text = "Catalogo Banners";
        menuItem11.Icon = Ext.Net.Icon.Layout;

        Ext.Net.ConfigItem configItem11 = new Ext.Net.ConfigItem();
        configItem11.Name = "url";
        configItem11.Value = "catalogBanners.aspx";
        configItem11.Mode = Ext.Net.ParameterMode.Value;

        menuItem11.CustomConfig.Add(configItem11);

        //Agregamos a menu principal
        menuPrincipal.Items.Add(menuItem11);

        return menuPrincipal;
    }
    public static Ext.Net.Menu LoadMenuColorsCatalog(string menuName, string panelCenterName, string messageLoading)
    {
        Ext.Net.Menu menuPrincipal = new Ext.Net.Menu();
        menuPrincipal.ID = menuName;
        menuPrincipal.Listeners.Click.Handler = "MenuPanel.addTab('" + panelCenterName + "', menuItem, 0,'" + messageLoading + "');";

        //Catalogo usuarios
        Ext.Net.MenuItem menuItem11 = new Ext.Net.MenuItem();
        menuItem11.ID = menuName + "menuColors";
        menuItem11.Text = "Catalogo Colores";
        menuItem11.Icon = Ext.Net.Icon.Layout;

        Ext.Net.ConfigItem configItem11 = new Ext.Net.ConfigItem();
        configItem11.Name = "url";
        configItem11.Value = "catalogColors.aspx";
        configItem11.Mode = Ext.Net.ParameterMode.Value;

        menuItem11.CustomConfig.Add(configItem11);

        //Agregamos a menu principal
        menuPrincipal.Items.Add(menuItem11);

        return menuPrincipal;
    }
}